package common;

import interfaces.ITransaction;
import java.util.List;
import java.util.ArrayList;
import java.lang.Comparable;

public class Match implements Comparable{
    public Match(ITransaction pattern, int support){
        this.pattern = pattern;
        this.support = support;
    }
    public ITransaction pattern;
    public double support;
    
    @Override
    public int compareTo(Object obj){
        Match other = ( obj instanceof Match ? (Match)obj  : null );        
        return (int)(Math.signum(this.support-other.support));
    }
}
